<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>
      ejs模板
      <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
      <script>
        $(function () {
          $.get("/api/user", (data) => {
            console.log(data);
          });
        });
      </script>
      <script>
        $(function () {
          $.get("/user", (data) => {
            console.log(data);
          });
        });
      </script>
    </h1>
  </body>
</html>
